app.service("taxInfoService", function ($http) {

    this.findPage = function (pageNum, pageSize, searchEntity) {
        return $http.post("../taxInfo/findPage?pageNum=" + pageNum + "&pageSize=" + pageSize, searchEntity);
    };

    this.findOne = function (taxInfoId) {
        return $http.get("../taxInfo/findOne?taxInfoId=" + taxInfoId);
    };

    this.update = function (taxInfo) {
        return $http.post("../taxInfo/update", taxInfo);
    };

    this.insert = function (taxInfo) {
        return $http.post("../taxInfo/insert", taxInfo);
    };

    this.findAll = function () {
        return $http.get("../taxInfo/findAll");
    };

    this.findByBrandId = function () {
        return $http.get("../taxInfo/findByBrandId");
    };

    this.addLicenseQualification = function (params) {
        return $http.post("../taxInfo/addLicenseQualificationUrl", params);
    };

    this.findSubBalance = function (subAccount, taxInfoId) {
        let data = {"subAccount": subAccount, "taxInfoId": taxInfoId};
        return $http.post("../taxInfo/findSubBalance", data);
    };

    this.findAllInvoiceCategory = function () {
        return $http.get("../taxInfo/findInvoiceCategoryAll");
    };

    this.findInvoiceCategoryByTaxInfoId = function (params) {
        return $http.post("../taxInfo/findInvoiceCategoryByTaxInfoId", params);
    };

    this.updateByPrimaryKeySelective = function (param) {
        return $http.post("../taxInfo/updateByPrimaryKeySelective", param);
    };

    this.insertInvoiceCategory = function (param) {
        return $http.post("../taxInfo/insertInvoiceCategory", param);
    };
});